export const urls = new Map(), GET = new Map(), POST = new Map(), PUT = new Map(), DELETE = new Map();
urls.set('get', GET), urls.set('post', POST), urls.set('put', PUT), urls.set('delete', DELETE);

// const ip = "http://11.23.254.120";
const ip = "http://base.kingborn.org:27002";

const apiUrl = process.env.NODE_ENV == "development" ? "/api" : `${ip}/auth-admin/`;
const apiuserNUrl = process.env.NODE_ENV == "development" ? "/userN" : `${ip}/auth-resource/`;

// GET.set('getLeftMenu', './static/json/leftMenu.json');
// GET.set('getLeftMenu', './static/json/leftMenuConfig.json');

GET.set('getUserN',`${apiuserNUrl}/user`); // 获取用户信息
GET.set('getClients', `${apiuserNUrl}/getClients`); // 获取应用列表
GET.set('getActivilys',`${apiuserNUrl}/getActivilys`); // 获取菜单

// ---------------------------------------根据access_token获取用户信息------
POST.set('login', `${apiUrl}/pwdLogin`);  // 登陆
POST.set('editUserPwd', `${apiUrl}/account/updateUserPwd`);  // 修改密码



